import os
import pandas as pd
import requests

PATH = r''
r = requests.get('https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data')
with open('iris.data', 'w') as f:
    f.write(r.text)
# os.chdir(PATH)
df = pd.read_csv(PATH + 'iris.data', names=['sepal length', 'sepal width', 'petal length', 'petal width', 'class'])
print(df['sepal width'])
df.head()
df['class'].unique()
df[df['class'] == 'Iris-virginica']
df.count()
df[df['class'] == 'Iris-virginica'].count()
virginica = df[df['class'] == 'Iris-virginica'].reset_index(drop=True)
df.describe()
